import request from '@/utils/request'
// 学院专题列表
export function collegeList (params) {
  return request({
    url: '/TiTrainingController/list',
    method: 'get',
    params: params
  })
}
// 学院简介
export function collegeInfoSave (data) {
  return request({
    url: '/college/save',
    method: 'post',
    data: data
  })
}
//  新增专题
export function collegeSpeSave (data) {
  return request({
    url: '/TiTrainingController/save',
    method: 'post',
    data: data
  })
}
// 专题详情
export function collegeById (params) {
  return request({
    url: '/TiTrainingController/getById',
    method: 'get',
    params: params
  })
}
// 编辑专题
export function collegeSpeUpdate (data) {
  return request({
    url: '/TiTrainingController/update',
    method: 'post',
    data: data
  })
}
// 删除
export function deleteId (params) {
  return request({
    url: '/TiTrainingController/deleteId',
    method: 'get',
    params: params
  })
}

// 内容大纲
export function sourseVideoList (params) {
  return request({
    url: '/TiTrainingSourseVideoController/list',
    method: 'get',
    params: params
  })
}
// 内容大纲新增
export function sourseVideoSave (data) {
  return request({
    url: '/TiTrainingSourseVideoController/save',
    method: 'post',
    data: data
  })
}
// 内容大纲编辑
export function sourseVideoUpdate (data) {
  return request({
    url: '/TiTrainingSourseVideoController/update',
    method: 'post',
    data: data
  })
}
export function sourseVideoById (params) {
  return request({
    url: '/TiTrainingSourseVideoController/getById',
    method: 'get',
    params: params
  })
}
// 内容大纲删除
export function sourseVideoDeleteId (params) {
  return request({
    url: '/TiTrainingSourseVideoController/deleteId',
    method: 'get',
    params: params
  })
}
// 课程视频
export function VideoControllerList (params) {
  return request({
    url: '/TiTrainingVideoController/list',
    method: 'get',
    params: params
  })
}
// 视频新增
export function VideoControllerSave (data) {
  return request({
    url: '/TiTrainingVideoController/save',
    method: 'post',
    data: data
  })
}
// 编辑视频
export function VideoControllerUpdate (data) {
  return request({
    url: '/TiTrainingVideoController/update',
    method: 'post',
    data: data
  })
}
// 视频详情
export function VideoControllerById (params) {
  return request({
    url: '/TiTrainingVideoController/getById',
    method: 'get',
    params: params
  })
}
// 删除视频
export function VideoControllerDeleteId (params) {
  return request({
    url: '/TiTrainingVideoController/deleteId',
    method: 'get',
    params: params
  })
}
// 考试管理
export function examSave (data) {
  return request({
    url: '/exam/save',
    method: 'post',
    data: data
  })
}
// 查找考试信息
export function getExamById (params) {
  return request({
    url: '/exam/getByExamId',
    method: 'get',
    params
  })
}

export function getExamResultList (params) {
  return request({
    url: '/exam/getExamResultList',
    method: 'get',
    params
  })
}
export function exportExamResultList (params) {
  return request({
    url: '/exam/exportExamResultList',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
export function TiTrainingSignControllerList (params) {
  return request({
    url: '/TiTrainingSignController/list',
    method: 'get',
    params
  })
}
export function scoreListAll (params) {
  return request({
    url: '/score/listAll',
    method: 'get',
    params
  })
}

export function exportResultList (params) {
  return request({
    url: '/score/exportResultList',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

export function exportSignResultList (params) {
  return request({
    url: '/TiTrainingSignController/exportResultList',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
